#include "UdpServer.hpp"
#include <iostream>
#include <unistd.h>
#include <memory>
#include <string>
#include <unistd.h>

int main(int argc, char* args[])
{
    if(argc != 2)
    {
        std::cout << "./UdpServer Serverport"<<std::endl;
    }
    uint16_t port = std::stoi(args[1]);
    std::unique_ptr<UdpServer> usvr = std::make_unique<UdpServer>(port);
    usvr->InitServer();
    usvr->Start(); 
    return 0;
}